package com.ingta.framework.ibatis.util;

import org.joda.time.DateTime;

/**
 * @author 作者 杨永兴:
 * @version 创建时间：2013-5-8 下午12:40:09 说明：
 */
public class IbatisParams {

    public static int aheadMonth = 6;// 用户能查询到的与当前时间最大的间隔月数
    public static DateTime limitDate = JodaTimeUtils.getAheadMonthTime(aheadMonth);// 用户能查询到的最早的历史时间
    public String normal = "NORMAL";
    public String delete = "DELETE";
    public String statusName = "STATUS";
    public static int numPerPage = 10;

    public void setNumPerPage(int numPerPage) {
        IbatisParams.numPerPage = numPerPage;
    }

    public void setAheadMonth(int aheadMonth) {
        IbatisParams.aheadMonth = aheadMonth;
    }

    public void setLimitDate(DateTime limitDate) {
        IbatisParams.limitDate = limitDate;
    }

    public void setNormal(String normal) {
        this.normal = normal;
    }

    public void setDelete(String delete) {
        this.delete = delete;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }
}
